﻿/*
 * Worker.h
 *
 *  Created on: 2016年2月22日
 *      Author: Administrator
 */

#ifndef CORE_SOURCES_CORE_WORKER_H_
#define CORE_SOURCES_CORE_WORKER_H_
 #include <thread>
namespace eyas{
namespace core{
	class Processor;
class CORE_API Worker {
public:
	Worker(Processor *processor);
	virtual ~Worker();
private:
	Processor *processor_;
	std::thread thread_;

protected:
	void workProcess();

public:
	void startWork();
};
}
}
#endif /* CORE_SOURCES_CORE_WORKER_H_ */
